<%-- 
    Document   : SessionScopeBean
    Created on : Jun 17, 2013, 7:37:56 PM
    Author     : Acer
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Using Beans and Session Scope</title>
    </head>
    <body>
        <h1>Using Beans and Session Scope</h1>
        <jsp:useBean id="bean1" class="beans.Counter" scope="session"/>
        <%
        bean1.setCounter(bean1.getCounter()+1);
        %>
        The counter value is:<jsp:getProperty name="bean1" property="counter"/>
    </body>
</html>
